package com.xqh.javabasic.array_element_complementation;
public class ArrayElement_Complementation{

	public static void arrayElement_Complementation(){
	
			int [] a = new int [1000];
	
			int x =0;
			int Cnt0 =0;
			int Cnt1 =0; 
			int Cnt2 =0; 
			
		while(x<1000){
			
				a [x] =x+1;
				int status =a[x]%3;
				
			switch(status){
				case 0:
			
					Cnt0= Cnt0 +1;
					break;        
			
				case 1:
				
					Cnt1= Cnt1 +1;
					break;
					
				case 2:
				
					Cnt2= Cnt2 +1;
					break;
			}
			x++;
			
			System.out.println(Cnt0+","+Cnt1+","+Cnt2);
		}
		
		
		
}
	public static void main(String [] args){
	
	arrayElement_Complementation();
	}
}